Coupling Evaluators for Attribute Coupled Grammars

نویسندگان

  • Gilles Roussel
  • Didier Parigot
  • Martin Jourdan
چکیده

Some years ago, the notion of attribute coupled grammars was introduced by Ganzinger and Giegerich 4], together with descrip-tional composition. The latter works essentially at the speciication level, i.e., it produces an attribute grammar which speciies the composition of two attribute coupled grammars. We introduce a new approach to this composition of attribute coupled grammars. This composition no longer works at the speciication level but at the evaluator level. It produces a special kind of attribute evaluator. For this purpose we have introduced the notion of coupling evaluator. The main advantage of this new approach, compared with descriptional composition, is that it is possible to build separately the coupling eval-uator of each attribute coupled grammar; in other words it allows real separate compilation of AG modules. Another important advantage is that we do not need to check the attribute grammar class in order to construct the nal sequence of evalu-ators; thus, this construction produces a new sort of evaluator.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Static and Dynamic Coupling Attribute Evaluators

Several years ago, the notion of attribute coupled grammars was introduced by Ganzinger and Giegerich 5], together with their descriptional composition. The latter works essentially at the speciication level, i.e., it produces an attribute grammar which speciies the composition of two attribute coupled grammars. We introduce a new approach to this composition of attribute coupled grammars. It n...

متن کامل

Experiments with a Real Parallel Attribute Evaluator

We present a simple but eeective method for constructing eecient attribute evaluators for the class of l-ordered attribute grammars that run on tightly-coupled (shared-memory) multi-processor machines. We also give an account of how we implemented this method in practice. Lastly, we give some gures drawn from realistic experiments, i.e. actual implementation of parallel evaluators for meaningfu...

متن کامل

Attribute Evaluation using Neighbour Functions

Design and implementation of attribute evaluators has received considerable attention ever since Knuth formulated the concept of attribute grammars. In particular, the class of Ordered Attribute Grammars (OAGs) has been of particular interest because practical and efficient attribute evaluators can been implemented based on the statically determined fixed plans for such grammars. Two main categ...

متن کامل

Multi-Plan Attribute Grammars

We identify a new class of non-circular attribute grammars, called the multi-plan attribute grammars, for which static evaluation plans can be computed. The class of multi-plan attribute grammars is larger than all currently known classes of non-circular attribute grammars with static evaluation plans. The decision procedure and the procedure for computing evaluation plans take essentially poly...

متن کامل

Object - Oriented Attribute Grammars

This paper introduces object-oriented attribute grammars. These can be characterized as a notation for all classes of attribute grammars. Based on a subtype relation between grammar rules, inheritance of attributes and attribute computations are defined. With this approach, attributes local to grammar rules and the elimination of chain rules are possible without any special constructs. We prese...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994